# Extended Euclidean algorithm Bézout identity.

from PyM import *

n = 2345; m = 1234
[a,b,d] = extended_euclidean_algorithm(n,m)
show([d,a,b])

show((a*n+b*m,d))